package com.niiwoo.civet.mobile.vo.request.loan;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author: wuke
 * @Description:
 * @Date: Created in 14:04 2018/4/14
 */
@Data
@ApiModel
public class LoanAuditConfirmReqVO {
    @NotNull(message = "标的ID不能为空")
    @ApiModelProperty(value = "标的ID", required = true)
    private Long projectId;

    @NotNull(message = "借款金额不能为空")
    @DecimalMin(value="0",message = "借款金额不能小于0")
    @ApiModelProperty(value = "借款金额", required = true)
    private BigDecimal loanAmount;

    @NotNull(message = "借款期限不能为空")
    @ApiModelProperty(value = "借款期限", required = true)
    private Integer deadline;

    @ApiModelProperty(value = "使用红包Id")
    private Long prizeId;

    @ApiModelProperty(value = "使用红包类型")
    private Byte prizeType;
}
